package me.ereach.di;

public class Geometry implements IGeometry {
    @Override
    public double getDistance(Point p1, Point p2) {
        float w = p1.getX() - p2.getX();
        float h = p1.getY() - p2.getY();
        return Math.sqrt(Math.pow(w, 2) + Math.pow(h, 2));
    }
}
